home *** CD-ROM | disk | FTP | other *** search
/ Hot Super Models / Hot Super Models.iso / unix / x11 / xv200.tar / xv-2.00 / Makefile.std < prev    next >
Makefile  |  1992-01-02  |  6KB  |  204 lines

  1. # Makefile for xv
  2.  
  3.  
  4. # your C compiler (and options) of choice
  5. #
  6. # if compiling on a Mips machine, try this: 
  7. #    CCOPTS = -Olimit 600 -systype bsd43
  8.  
  9. # Remember:  if you change the C compiler (to gcc, or whatever), be sure to
  10. # do the same thing to the Makefile in the 'jpeg' subdirectory
  11.  
  12. CC = cc
  13. CCOPTS = -O
  14.  
  15.  
  16. ################ CONFIGURATION OPTIONS #################
  17.  
  18. # if, for whatever reason, you're unable to get the JPEG library to compile
  19. # on your machine, *COMMENT OUT* the following lines
  20. #
  21. # Also, comment out the LIBJPEG dependancy at the end of this Makefile
  22. #
  23. JPEG = -DHAVE_JPEG
  24. JPEGDIR = jpeg
  25. LIBJPEG = $(JPEGDIR)/libjpeg.a
  26. JPEGINCLUDE = -I$(JPEGDIR)
  27.  
  28.  
  29. # if you are running under DXWM, I pity you.  XV doesn't work correctly
  30. # under DXWM.  You should probably be running MWM.  However, if such is
  31. # not a valid option for you, try uncommenting the following line.  The
  32. # behavior won't be 'right', but it will be less 'wrong'.
  33. #DXWM = -DDXWM
  34.  
  35.  
  36. # if you are running on a SysV-based machine, such as HP, Silicon Graphics,
  37. # etc, uncomment the following line to get you most of the way there.  
  38. #
  39. #UNIX = -DSVR4
  40.  
  41.  
  42. # If you are running on a POSIX-compatible machine, such as an
  43. # IBM RS/6000, you MAY need to uncomment the 'NEED_DIRENT' line.
  44. # To determine if such is the case, do a 'man readdir' on your machine.  If
  45. # readdir() returns a pointer to 'struct direct', you will not have
  46. # to change anything.  If, however, readdir() returns a pointer to
  47. # 'struct dirent', you will have to add the '-DDIRENT' to CFLAGS
  48. #
  49. # One note: folks using an IBM RS/6000 don't have to touch this line.  
  50. #           I check for '6000'-hood in xv.h
  51. #
  52. #NEED_DIRENT = -DDIRENT
  53.  
  54.  
  55. #
  56. # for UMAX V by Encore Computers uncomment the following line for
  57. # the portable c compiler, system specific definitions and
  58. # location of local X11 library(if site specific, modify -L option)
  59. # No other switches should be necessary
  60. #
  61. #UMAX =  -q extensions=pcc_c -D__UMAXV__ -L/usr2/usr/lib/X11 -DSVR4 -DDIRENT
  62.  
  63.  
  64. # If your machine doesn't have the 'strchr', 'memset' and 'memcpy' functions,
  65. # but does have 'bcopy', uncomment the following line.  (And get a better 
  66. # operating system!)
  67. #
  68. #USEMEM = -DNEED_MEMROUTINES
  69.  
  70.  
  71. # IF YOUR MACHINE DOESN'T HAVE 'vprintf()' OR 'vsprintf()'
  72. #
  73. # Vax BSD and IBM AOS don't have vprintf or vsprintf.
  74. # Note that our local library versions of sprintf have been updated
  75. # to return int, the number of characters in the formatted string,
  76. # whereas the versions in stock 4.3BSD do not so return.  You may
  77. # have to remove the "-DINTSPRINTF" below if you're compiling for
  78. # stock 4.3BSD or for some other Vax or RT library package where
  79. # sprintf returns char *.
  80. #
  81. # Also, I define NOVOID on the Vax because I'm using pcc to compile.
  82. # If you use gcc or some other better compiler, this should not be
  83. # necessary.  I define NOSTDHDRS on the RT because we don't have
  84. # standard ANSI header files installed for the RT, even though the RT
  85. # compiler claims to be ANSI-compliant.
  86. #
  87. #  (for BSD 4.3 VAX, uncomment the following line)
  88. #VPRINTF = -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOVOID
  89. #  (for (stock) IBM RT AOS 4.3, uncomment the following line)
  90. #VPRINTF = -DNEED_VPRINTF -DLONGINT -DNOSTDHDRS
  91.  
  92.  
  93. # If your machine does not have the 'setitimer()' call, but does
  94. # have the 'usleep()' call, uncomment the following line:
  95. #
  96. #TIMERS = -DUSLEEP
  97. #
  98. # alternately, if your machine does not have EITHER the 'setitimer()' or
  99. # the 'usleep()' call, uncomment the following line:
  100. #
  101. #TIMERS = -DNOTIMER
  102.  
  103.  
  104. # If you are using an AT&T machine, uncomment the following line
  105. # If you have problems compiling xv.c and xvdir.c because of the DIR
  106. # reference in dirent.h, append '-DATT' to the following line:
  107. #
  108. #ATT = -DDIRENT -DUSLEEP -DATT
  109.  
  110.  
  111. # If you are using an HP running HPUX 7.0, uncomment the following line
  112. #
  113. #HPUX7 = -DSVR4 -DATT +Ns4000 -DHPUX7
  114.  
  115.  
  116. # For SCO and ODT machines, uncomment the following:
  117. #
  118. #SCO = -Dsco -DPOSIX -DNOTIMER
  119. #
  120. # Itimers will be in 3.2v3 (yeah!) but that won't be out in the public's
  121. # hands for a while.
  122. #
  123. # Also, you'll want to change LIBS to
  124. #
  125. #  -lX11 -lm -lsocket -lmalloc -lc -lx
  126. #
  127. # -lx must be after -lc so you get the right directory routines.
  128. #
  129.  
  130. CFLAGS = $(CCOPTS) $(NEED_DIRENT) $(VPRINTF) $(TIMERS) $(ATT) \
  131.     $(SCO) $(UNIX) $(USEMEM) $(HPUX7) $(JPEG) $(JPEGINCLUDE) \
  132.     $(DXWM) $(UMAX)
  133.  
  134. LIBS = -lX11 $(LIBJPEG) -lm
  135.  
  136. BITMAPS = bitmaps/grasp bitmaps/penn bitmaps/down bitmaps/down1 \
  137.       bitmaps/up bitmaps/up1 bitmaps/scrlgray bitmaps/gray50 \
  138.       bitmaps/gray25 bitmaps/i_fifo bitmaps/i_chr bitmaps/i_dir \
  139.       bitmaps/i_blk bitmaps/i_lnk bitmaps/i_sock bitmaps/i_reg \
  140.       bitmaps/rb_off bitmaps/rb_on bitmaps/rb_off1 bitmaps/rb_on1 \
  141.       bitmaps/fc_left bitmaps/fc_leftm bitmaps/fc_mid bitmaps/fc_midm \
  142.       bitmaps/fc_right bitmaps/fc_rightm bitmaps/fc_left1 \
  143.       bitmaps/fc_left1m bitmaps/fc_right1 bitmaps/fc_right1m \
  144.       bitmaps/icon bitmaps/dial_cw1 bitmaps/dial_cw2 bitmaps/dial_ccw1 \
  145.       bitmaps/dial_ccw2 bitmaps/iconmask bitmaps/gf1_addh \
  146.       bitmaps/gf1_delh bitmaps/gf1_line bitmaps/gf1_rst \
  147.       bitmaps/gf1_spln bitmaps/gf1_gamma \
  148.       bitmaps/h_rotl bitmaps/h_rotr bitmaps/h_sinc bitmaps/h_sdec \
  149.       bitmaps/h_flip bitmaps/cb_off bitmaps/cb_on bitmaps/cb_off1 \
  150.       bitmaps/cb_on1 bitmaps/h_sat bitmaps/h_desat bitmaps/root_weave \
  151.           bitmaps/cboard50 bitmaps/mb_chk
  152.  
  153. OBJS =     xv.o xvevent.o xvroot.o xvmisc.o xvimage.o xvcolor.o xvsmooth.o \
  154.     xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o \
  155.     xvgifwr.o xvdir.o xvbutt.o xvpbm.o xvxbm.o xvgam.o \
  156.     xvdial.o xvgraf.o xvsunras.o xvjpeg.o xvps.o xvpopup.o xvdflt.o \
  157.     vprintf.o 
  158.  
  159. MISC = README CHANGELOG
  160.  
  161. .c.o:    ; $(CC) -c $(CFLAGS) -o $@ $*.c
  162.  
  163. all: $(LIBJPEG) xv bggen
  164.  
  165. xv: $(OBJS) $(LIBJPEG)
  166.     $(CC) $(CFLAGS) -o xv $(OBJS) $(LIBS)
  167.  
  168. bggen: bggen.c
  169.     $(CC) $(CFLAGS) -o bggen bggen.c
  170.     
  171. clean:
  172.     rm -f $(OBJS)
  173.  
  174. tar:
  175.     tar cf xv.tar Makefile* Imakefile *.c *.h bitmaps \
  176.         docs unsupt $(JPEGDIR) $(MISC)
  177.  
  178. $(OBJS):   xv.h
  179. xv.o:      bitmaps.h
  180. xvbutt.o:  bitmaps.h
  181. xvctrl.o:  bitmaps.h
  182. xvdial.o:  bitmaps.h
  183. xvinfo.o:  bitmaps.h
  184. xvmisc.o:  bitmaps.h
  185. xvscrl.o:  bitmaps.h
  186. xvgraf.o:  bitmaps.h
  187.  
  188. xvdflt.o:  bitmaps/xvpic_logo bitmaps/xvpic_rev bitmaps/xvpic_jhb
  189. xvdflt.o:  bitmaps/xf_left bitmaps/xf_right
  190.  
  191.  
  192. bitmaps.h: $(BITMAPS)
  193.     cat $(BITMAPS) > bitmaps.h
  194.  
  195.  
  196.  
  197.  
  198. # if, for whatever reason, you're unable to get the JPEG library to compile
  199. # on your machine, *COMMENT OUT* the following lines
  200. #
  201. $(LIBJPEG):
  202.     ( cd $(JPEGDIR) ; make libjpeg.a )
  203.  
  204.